package stdio.costa.moca;

import stdio.costa.moca.model.User;

public class ThreadLocalSessionManager {
	
	private static final ThreadLocal<User> users = new ThreadLocal<User>();
	
	public static void setUser(User user) {
		users.set(user);
	}
	
	public static User getUser() {
		return users.get();
	}
	
	public static void clear() {
		users.remove();
	}
}
